package com.kugou.test.helper;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

public class CfgHelper {
	private static String cfgFile = "/assets/unittest.properties";
	
	public static String get(String key) {
		Properties props = new Properties();   
        InputStream in = CfgHelper.class.getResourceAsStream(CfgHelper.cfgFile);
        try {   
            props.load(in);   
        } catch (IOException e) {   
            e.printStackTrace();   
        }
        return props.getProperty(key);
	}
}
